package com.woniu.zsd.shopping.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhangtao
 * @since 2025年02月18日
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("product_order")
public class ProductOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "product_order_id", type = IdType.AUTO)
    private Integer productOrderId;

    @TableField("created_at")
    private LocalDateTime createdAt;

    @TableField("product_id")
    private Integer productId;

    @TableField("order_people")
    private String orderPeople;

    /**
     * 0是待接单	            1是已接单	            2是进行中	            3是已完成	            4是已取消	            5是超时未接单
     */
    @TableField("status")
    private Integer status;

    @TableField("order_number")
    private Integer orderNumber;

    @TableField("cost_point")
    private Integer costPoint;

    @TableField("address")
    private String address;

    @TableField("receiver_name")
    private String receiverName;

    @TableField("receiver_phone")
    private String receiverPhone;

    @TableField("finished_at")
    private LocalDateTime finishedAt;

    @TableField("dispatcher")
    private String dispatcher;

    @TableField("dispatcher_phone")
    private String dispatcherPhone;


}
